package com.zh.exception;

import lombok.Data;

/**
 * @Description:
 * @ClassName TokenException
 * @date: 2021.04.19 15:32
 * @Author: zhanghang
 */
@Data
public class TokenException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    public Integer code;

    public TokenException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public TokenException(Integer code, String message, Throwable cause) {
        super(message, cause);
            this.code = code;
    }
}
